	<div class="column full fl">
	
		<div class="box themed_box">
			<h2 class="box-header-new"></h2>

			<h2 class="box-header"><?php echo $title.' '.$this->lang->line('pic'); ?></h2>
			<div class="box-content box-table">
			  
              <table class="tablebox">
		<thead class="table-header">
		<tr>
			<th><?php echo $this->lang->line('no');?></th>
			<th><?php echo $this->lang->line('cust_name');?></th>
			<th><?php echo $this->lang->line('pic');?></th>
            <th><?php echo $this->lang->line('tlp');?></th>
            <?php if( $this->session->userdata('user_pos')<> $access )   : ?>
            <th><?php echo $this->lang->line('pic');?></th>
             <?php endif;?>
			<th><?php echo $this->lang->line('id');?></th>
			<!--<th><?php echo $this->lang->line('user_group');?></th>
			<th><?php echo $this->lang->line('user_pos');?></th>-->
            <?php //if($this->session->userdata('user_group')== $this->config->item('admin')):?>
			<th>Action</th>
			<th><?php echo $this->lang->line('cust'); ?></th>
			<?php //endif;?>
		</tr>
		</thead>
		<tbody>
            <?php $i=1; ?>
					<?php foreach($table['prospects'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
			<tr class="<?php echo $zebra; ?>">
			<td><?php echo $i;?></td>
			<td><?php echo $rec['customer_name'] ?></td>
			<td><?php echo $rec['pic'] ?></td>
            <td><?php echo $rec['tlp'] ?></td>
            
            <?php if( $this->session->userdata('user_pos')<> $access )  : ?>
            <?php if($title==$this->lang->line('prospect')): ?>
            <td><?php echo $rec['rev'] ?></td>
            <?php endif; ?>
			<?php endif; ?>
            <td><?php echo $rec['id'] ?></td>
			<!--<td class="center"><?php // echo $rec['group_name'] ?></td>
			<td class="center"><?php // echo $rec['pos_name'] ?></td>-->
            <?php //if($this->session->userdata('user_group')== $this->config->item('admin')):?>
			<td class="tc width15">
              <?php if($title<>$this->lang->line('prospect')): ?>
              <a class="button white" href="<?php  echo site_url($this->config->item('cust_view').$rec['id']); ?>"><span class="icon_single video"></span></a> 
              <?php else: ?>
              <a class="button white" href="<?php  echo site_url($this->config->item('cust_viewp').$rec['id']); ?>"><span class="icon_single video"></span></a> 
              <?php endif;?>
              <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
              <?php if($title<>$this->lang->line('prospect')): ?>  
                <a class="button white" href="<?php  echo site_url($this->config->item('cust_delete').$rec['id']); ?>"><span class="icon_single cancel"></span></a>
			  <?php endif;?>
              <?php endif;?>
              <?php if(($this->session->userdata('user_group')<> $this->config->item('manage')) ):?>
              <?php if($title<>$this->lang->line('prospect')): ?>  	
                <a class="button white" href="<?php  echo site_url($this->config->item('cust_edit').$rec['id']); ?>"><span class="icon_single edit"></span></a>
              <?php endif;?>
              <?php endif;?>
               
            </td>
			<td>
			 <a class="button white" href="<?php  echo site_url($this->config->item('cust_prospectadd').$rec['id']); ?>"><?php echo $this->lang->line('add_customer');?></span></a>			  
			</td>
			<?php //endif;?>
			</tr>	
			<?php $i++; endforeach;?>
            
            
			
			
		</tbody>
		</table>
		
              
			</div>
		</div>
	
	<div class="clear"></div>
	</div>
    